<!-- 审批人 -->

<template>
  <div>
    <FormSlot label="审批人" bind="approvers" tip="请选择审批人" noMargin required>
      <draggable v-model="one.approvers" :animation="200" :disabled="isShow" draggable=".ApprovalTemplate-UserItem">
        <UserItem
          v-for="item in one.approvers"
          :key="item.time || item.id"
          :obj="item"
          class="ApprovalTemplate-UserItem marginBottom"
        />

        <UserAdd v-if="!isShow" class="ApprovalTemplate-UserAdd marginBottom" />
      </draggable>
    </FormSlot>

    <EasyRow col2>
      <FormRadio label="手写签名" bind="isSignature" :dict="CORE.DICT.YES" :init="2" required />
      <FormCheckbox label="撤回范围" bind="canCancelStatus" :dict="DICT.CANCEL_STATUS" :hasAll="false" join required />
    </EasyRow>
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyUser',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb()],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('./', true, /vue$/)),
}
</script>

<style lang="scss">
@import './index.scss';
</style>
